package br.ufc.ck0017.canon;

import br.ufc.ck0017.ir.tree.*;
import br.ufc.ck0017.temp.*;

import java.util.List;

/**
 * Created by Marcel on 23/06/2015.
 */
public class MoveCall {
    private  List<IRNode> kids;
    private TEMP dst;
    private CALL src;

    MoveCall(TEMP d, CALL s) {
        dst = d;
        src = s;
    }

    public List<IRNode> kids() {
        return src.getChildren();
    }

    public IRNode build(List<IRNode> kids) {
        return IR.MOVE(dst, src.build(kids));
    }

}
